﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcProject.Models.Team>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        创建班组</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>班组信息</legend>
        <div class="editor-label">
            所属项目名称
        </div>
        <div class="editor-label">
            <%: Html.DropDownList("projectId", ViewData["projectinfos"] as SelectList)%>
        </div>
        <div class="editor-label">
            班组名称
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.TeamName) %>
            <%: Html.ValidationMessageFor(model => model.TeamName) %>
        </div>
        <div class="editor-label">
            班组排序号
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.TeamOrder) %>
            <%: Html.ValidationMessageFor(model => model.TeamOrder) %>
        </div>
        <div class="editor-label">
            班组负责人
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.TeamLeader) %>
            <%: Html.ValidationMessageFor(model => model.TeamLeader) %>
        </div>
        <div class="editor-label">
            班级负责人身份证号
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.TeamLeaderCardId) %>
            <%: Html.ValidationMessageFor(model => model.TeamLeaderCardId) %>
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("返回班组列表", "Index") %>
    </div>
</asp:Content>
